var express = require('express');

var app = express();

app.route('/book')
    .get(function(req, resp){
        resp.send("a book GET request");
    })
    .post(function(req, resp){
        resp.send("a book POST request");
    });

app.listen(3000, function(){
    console.log("Server is running.")
})